﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace ClassWithinLibrary
{
    public class Class1
    {
        public string PublicMethod()
        {
            return PrivateMethod();
        }

        protected string ProtectedMethod()
        {
            return "protected method";
        }

        internal string InternalMethod()
        {
            return "internal method";
        }

        protected internal string ProtectedInternalMethod()
        {
            return "protected internal method";
        }

        private string PrivateMethod() 
        {
            return "Accessing private method from public method";        
        }
    }
}
